package cn.nn200433.mqtt.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * mqtt配置
 *
 * @author nn200433
 * @date 2021-07-23 03:39:49
 */
@Setter
@Getter
@ConfigurationProperties(prefix = HttpServerProperties.HTTP_SERVER_CONFIG_PREFIX)
public class HttpServerProperties {

    public static final String HTTP_SERVER_CONFIG_PREFIX = "http.server";

    /**
     * enabled                                   : 是否启用 emqx http认证
     * port                                      : http server 端口号，默认 35610
     */
    private Boolean enabled                       = Boolean.FALSE;
    private Integer port                          = 35610;

}